package com.yunhe.inspect.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName DataInspectOrderQueryCondition
 * @Description TODO
 * @Author HeTao
 * @Date 2021/11/11 11:06
 * @Version 1.0
 **/
@Data
@ApiModel("巡检工单列表查询入参对象")
public class DataInspectOrderQueryCondition implements Serializable {


    private static final long serialVersionUID = 2237694511229183747L;
    @ApiModelProperty(value = "关键字",required = false)
    private String keywords;

    @ApiModelProperty(value = "表单创建开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String createStartTime;

    @ApiModelProperty(value = "表单创建结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String createEndTime;

    @ApiModelProperty(value = "最近操作开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String updateStartTime;

    @ApiModelProperty(value = "最近操作结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String updateEndTime;


    @ApiModelProperty(value = "所属部门",required = false)
    private Long orgId;

    @ApiModelProperty(value = "部门集合",hidden = true,required = false)
    private List<Long> orgIds;

    @ApiModelProperty(value = "巡检状态",required = false)
    private String inspectStatus;

    @ApiModelProperty(value = "更新人",required = false,hidden = true)
    private Long updator;

    @ApiModelProperty(value = "检查人",required = false)
    private Long inspectOrderInspector;


    @ApiModelProperty(value = "项目id",hidden = true,required = false)
    private Long stationId;

    @ApiModelProperty(value = "当前页",required = true)
    private int page;

    @ApiModelProperty(value = "页面条数",required = true)
    private int size;
}
